@charset "UTF-8";
//清除浮动
@mixin clearfix() {
  &:before,
  &:after {
    content: "";
    display: table;
  }
  &:after {
    clear: both;
  }
}

//生成字体
@mixin fontface($fontname,$fontpath){
  font-family:$fontname;
  font-style: normal;
  font-weight: normal;
  src:url(#{$fontpath}.eot#iefix) format('embedded-opentype');
  src: local("☺"),
    url(#{$fontpath}.eot#iefix) format('embedded-opentype'),
	  url(#{$fontpath}.woff) format('woff'),
	  url(#{$fontpath}.ttf) format('truetype'),
	  url(#{$fontpath}.svg#svgFontName) format('svg');
}


/**
 * 文字多行截断
 * @param  {Number} $lineNum 行数
 */
@mixin textOverFlow($lineNum:2){
  text-overflow: ellipsis;
  -webkit-line-clamp: $lineNum;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
}
